﻿using Inovout.Models;
using System;

namespace Inovout.Security
{
    public partial class Resource : DataObject
    {
        public Resource()
        {
        }
        internal Resource(bool isGroup)
        {
            this.isGroup = isGroup;
        }
        public virtual string Name { get; set; }
        private bool isGroup;
        public virtual bool IsGroup { get { return isGroup; } set { isGroup = value; } }
        private string title;
        public virtual string Title
        {
            get { return title ?? this.Name; }
            set { title = value; }
        }
    }
}
